<?php
 include_once "../lib/DAL/DmThanhToan.php";
 
 class DmThanhToanBLL{
     function __construct(){
       
    }
    
    function __destruct(){
        
    }
    
    function setDmThanhToanBLL($row){
        $DmThanhToan = new DmThanhToan();
        $DmThanhToan->setDanhsachthi($row['makhoan_thanhtoan'],$row['tenkhoan_thanhtoan'] ,$row['loai_taikhoan']);
        return $DmThanhToan;
    }
    
    public function insertDmThanhToan($DmThanhToan){
        $sql="INSERT INTO dm_thanhtoan(
           makhoan_thanhtoan
          ,ten_khoanthanhtoan
          ,loai_thanhtoan
            ) VALUES (
               '".$DmThanhToan->getmakhoan_thanhtoan()."'
              ,'".$DmThanhToan->gettenkhoan_thanhtoan()."'
              ,'".$DmThanhToan->getloai_thanhtoan()."''   
            )";
    }
 }

?>